package com.cheer.ba.view.adapter;

import android.view.ViewGroup;

import com.cheer.ba.R;
import com.cheer.ba.model.HotExchangeModel;
import com.cheer.ba.widget.myrecycleview.BaseAdapter;

import java.util.List;

/**
 * 首页栏目 ，兑换
 *
 * @author HQ
 *         created at 2017/3/31 0031 10:11
 */
public class HomeChannelAdp extends BaseAdapter<HotExchangeModel, HomeChannelHolder> {

    public HomeChannelAdp() {
        super();
    }

    public HomeChannelAdp(List<HotExchangeModel> list, OnItemClickListener<HotExchangeModel, HomeChannelHolder> listener) {
        super(list, listener);
    }

    @Override
    public HomeChannelHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new HomeChannelHolder(parent, R.layout.adp_home_recycle);
    }
}
